package com.boofie.blog.model;

import lombok.Getter;

/**
 * @author boofie
 * @date 2021/8/20 21:12
 */
@Getter
public enum  ResultEnum {

    SUCCESS(20000,"操作成功",true),
    UNKNOWN_ERROR(40000,"未知错误",false),
    DATABASE_ACCESS_COMMON_ERROR(40000,"数据访问错误",false);

    private Integer code;

    private String message;

    private Boolean success;

    ResultEnum(Integer code, String message, Boolean success) {
        this.code = code;
        this.message = message;
        this.success = success;
    }
}
